import { lazy } from 'react'

const RouterList = [
    {
        path: '/home',
        component: lazy(() => import('../page/Home')),
        children: [
            {
                path: '/home/index',
                name: '首页',
                component: lazy(() => import('../page/HomeIndex/index'))
            },
            {
                path: '/home/dynamic',
                name: '动态',
                component: lazy(() => import('../page/Dynamic/index'))
            },
            {
                path: '/home/shop',
                name: '会员购',
                component: lazy(() => import('../page/Shop/index'))
            },
            {
                path: '/home/my',
                name: '我的',
                component: lazy(() => import('../page/My/index'))
            },
            {
                to: '/home/index',
                from: '/home'
            }
        ]
    },
    {
        path: '/sou',
        component: lazy(() => import('../page/Sou/index'))
    },
    {
        to: '/home',
        from: '/'
    }
]

export default RouterList